package com.ilink.ilinkcommon.domain.PO.studyservice;

/**
 * <h3>new-ilink-java-backend</h3>
 *
 * @Description <p>统计课程元信息的实体类表</p>
 * @Author pengshiyao
 * @Date 2024-09-16 15:01
 **/

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @ClassName StudyTeacherCourse
 * @Description
 * @Author pengshiyao
 * @Date 2024-09-16 15:01
 **/
@Data
@TableName("study_teacher_courses")
public class StudyTeacherCourse implements Serializable {

    @TableId(type = IdType.INPUT)
    private Long courseId;          // 课程的唯一标识


    private String teacherId;       // 授课老师的用户id, 外键关联tb_user

    private String courseTag;       // 课程标签

    private String courseDescription; // 课程简介

    private String courseName;        // 课程名称
    //    private byte[] courseImage;
    private String courseImage;       // 课程图片
    //folderid
    private Long folderId;          // 课程文件夹id，外键关联

    private Long viewNum;           //课程点击量

    @TableField("created_at")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;  // 创建时间

    @TableField("updated_at")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;  // 更新时间
}

